<div id="main_content">
	<h3><?php echo $title; ?></h3>
    <div class="table_list">
    	<p><?php echo $more1; ?></p>
        <br/>
        <p><?php echo $more2; ?></p>
        <br/>
        <br/>
        <br/>
        <form action="" method="POST">
        	<input type="text" name="txtEmail" size="30" style="padding:3px; margin-right:20px;" value="<?php if(isset($txtEmail))echo $txtEmail; ?>" /> 
                <input type="submit" name="btnSubmit" value="<?php echo $this->lang->line('Home_Send'); ?>" />
                <br/><span class="error"><?php echo form_error('txtEmail'); ?></span>
        </form>
    </div>
</div>
<!-- BEGIN dialog message -->
<div id="dialog" title="<?php echo $this->lang->line('CR_dialog_title'); ?>">
    <?php echo isset($message) ? $message : ''; ?>
</div>
<!-- END dialog message -->
<script type="text/javascript">
    $(document).ready(function() {
<?php if (isset($flag) && $flag == TRUE): ?>
            $(function() {
                $("#dialog").dialog({
                    modal: true,
                    close: function() {
                        window.location.href = '<?php echo base_url('/'); ?>';
                    },
                    buttons: [{
                        text: "<?php echo $this->lang->line('MC019');?>",
                        click: function() {
                            window.location.href = '<?php echo base_url('/'); ?>';
                        },
                    }]
                });
            });
<?php elseif (isset($flag) && $flag == FALSE): ?>
            $(function() {
                $("#dialog").dialog({
                    modal: true,
                    close: function() {
                        $( this ).dialog( "close" );
                    },
                    buttons: [{
                    text: "<?php echo $this->lang->line('MC019');?>",
                    click: function() {
                            $( this ).dialog( "close" );
                        },
                    }]
                });
            });
<?php endif; ?>
    });
</script>